package com.mxpio.erp.common.jpa.model;

import com.mxpioframework.jpa.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.MappedSuperclass;
import java.math.BigDecimal;

/**
 * 通知单明细
 * @author MxpIO
 */
@Data
@MappedSuperclass
@EqualsAndHashCode(callSuper=false)
@IdClass(BizNoticeLineKey.class)
public class BizNoticeLine extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /*@EmbeddedId
	private BizNoticeLineKey id;*/

    @Column(name = "LINE_NO_", updatable = false)
    @ApiModelProperty(value = "行号")
    @Id
    private String lineNo;

    @Column(name = "NOTICE_NO_", updatable = false)
    @ApiModelProperty(value = "通知单号")
    @Id
    private String noticeNo;


	@Column(name = "SORT_")
	@ApiModelProperty(value = "顺序号")
	private String sort;

    @Column(name = "ITEM_CODE_")
    @ApiModelProperty(value = "物料编码")
    private String itemCode;

    @Column(name = "QUANTITY_")
    @ApiModelProperty(value = "数量")
    private BigDecimal quantity;

}
